import request from '@/utils/request'

// 查询出库记录详情列表
export function listOutrecordinfo(query) {
  return request({
    url: '/medicine/outrecordinfo/list',
    method: 'get',
    params: query
  })
}

// 查询出库记录详情详细
export function getOutrecordinfo(storageOutDetailId) {
  return request({
    url: '/medicine/outrecordinfo/' + storageOutDetailId,
    method: 'get'
  })
}

// 新增出库记录详情
export function addOutrecordinfo(data) {
  return request({
    url: '/medicine/outrecordinfo',
    method: 'post',
    data: data
  })
}

// 修改出库记录详情
export function updateOutrecordinfo(data) {
  return request({
    url: '/medicine/outrecordinfo',
    method: 'put',
    data: data
  })
}

// 删除出库记录详情
export function delOutrecordinfo(storageOutDetailId) {
  return request({
    url: '/medicine/outrecordinfo/' + storageOutDetailId,
    method: 'delete'
  })
}
